﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<dynamic>" %>
<%@ Import Namespace="UI.Helper" %>
<div class="nav-outer-repeat">
    <!--  start nav-outer -->
    <div class="nav-outer">
        <!-- start nav-right -->
        <div id="nav-right">
            <div class="nav-divider">
                &nbsp;</div>
            <a href="<%= Utils.ResolveUrl(this.Html, "~/") %>Admin/Home/LogOut" id="logout">
                <img src="<%= Utils.ResolveUrl(this.Html, "~/") %>images/admin/shared/nav/nav_logout.gif"
                    width="64" height="14" alt="" /></a>
            <div class="clear">
                &nbsp;</div>
        </div>
        <!-- end nav-right -->
        <!--  start nav -->
        <!-- Get controller -->
        <% var controllerName = ViewContext.Controller.ValueProvider.GetValue("controller").RawValue.ToString().ToLower(); %>
        <div class="nav">
            <div class="table">
                <ul class="<%: controllerName.Contains("contruction") ? "current" : "select" %>">
                    <li><a href="#nogo"><b>Bất Động Sản</b><!--[if IE 7]><!--></a><!--<![endif]-->
                        <!--[if lte IE 6]><table><tr><td><![endif]-->
                        <div class="select_sub <%: controllerName.Contains("contruction") ? "show" : "" %>">
                            <ul class="sub">
                                <li class="<%: controllerName.Contains("contructioncategory") ? "sub_show" : "" %>">
                                    <a href="<%: Url.Content("~/Admin/ContructionCategory") %>">Danh Mục</a></li>
                                <li class="<%: controllerName.Contains("contructionproduct") ? "sub_show" : "" %>"><a
                                    href="<%: Url.Content("~/Admin/ContructionProduct") %>">Sản Phẩm</a></li>
                            </ul>
                        </div>
                        <!--[if lte IE 6]></td></tr></table></a><![endif]-->
                    </li>
                </ul>
                <div class="nav-divider">
                    &nbsp;</div>
                <ul class="<%: controllerName.Contains("furniture") ? "current" : "select" %>">
                    <li><a href="#nogo"><b>Thiết Kế Nội Thất</b><!--[if IE 7]><!--></a><!--<![endif]-->
                        <!--[if lte IE 6]><table><tr><td><![endif]-->
                        <div class="select_sub <%: controllerName.Contains("furniture") ? "show" : "" %>">
                            <ul class="sub">
                                <li class="<%: controllerName.Contains("furniturecategory") ? "sub_show" : "" %>"><a
                                    href="<%: Url.Content("~/Admin/FurnitureCategory") %>">Danh Mục</a></li>
                                <li class="<%: controllerName.Contains("furnitureproduct") ? "sub_show" : "" %>"><a
                                    href="<%: Url.Content("~/Admin/FurnitureProduct") %>">Sản Phẩm</a></li>
                            </ul>
                        </div>
                        <!--[if lte IE 6]></td></tr></table></a><![endif]-->
                    </li>
                </ul>
                <div class="nav-divider">
                    &nbsp;</div>
                <ul class="<%: controllerName == "user" ? "current" : "select" %>">
                    <li><a href="<%: Url.Content("~/Admin/User") %>"><b>Thay đổi mật khẩu</b></a></ul>
                <div class="nav-divider">
                    &nbsp;</div>
                <ul class="<%: controllerName == "information" ? "current" : "select" %>">
                    <li><a href="<%: Url.Content("~/Admin/Information") %>"><b>Thông tin chung</b></a></ul>
                <div class="clear">
                </div>
            </div>
            <div class="clear">
            </div>
        </div>
    </div>
    <div class="clear">
    </div>
    <!--  start nav-outer -->
</div>